package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ServiceEvent   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("happenDate")
  private String happenDate = null;

  @JsonProperty("content")
  private String content = null;

  public ServiceEvent name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 名称
   * @return name
  **/
  @ApiModelProperty(example = "实时持股股价大幅变动", value = "名称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ServiceEvent happenDate(String happenDate) {
    this.happenDate = happenDate;
    return this;
  }

  /**
   * 发生日期
   * @return happenDate
  **/
  @ApiModelProperty(example = "20170516", value = "发生日期")


  public String getHappenDate() {
    return happenDate;
  }

  public void setHappenDate(String happenDate) {
    this.happenDate = happenDate;
  }

  public ServiceEvent content(String content) {
    this.content = content;
    return this;
  }

  /**
   * 内容
   * @return content
  **/
  @ApiModelProperty(example = "客户号:80000025638段**,所持的002504股票,股价大幅变动100%, 请注意仓位控制,发生日期:20170516", value = "内容")


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ServiceEvent serviceEvent = (ServiceEvent) o;
    return Objects.equals(this.name, serviceEvent.name) &&
        Objects.equals(this.happenDate, serviceEvent.happenDate) &&
        Objects.equals(this.content, serviceEvent.content);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, happenDate, content);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceEvent {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    happenDate: ").append(toIndentedString(happenDate)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

